home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 13486 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.5 KB

  1. Path: EU.net!sun4nl!xs4all!usenet
  2. From: jtv@xs4all.nl (Jeroen T. Vermeulen)
  3. Newsgroups: comp.sys.amiga.misc,comp.sys.amiga.programmer
  4. Subject: Re: toy operating systems, like AmigaOS
  5. Date: Sat, 20 Apr 96 13:45:23
  6. Organization: Leiden University, Mathematics & Computer Science, The Netherlands
  7. Message-ID: <19960420.7B93528.C5E8@asd10-02.dial.xs4all.nl>
  8. References: <skllsf.984983.4.5@groomlake.mil> <4kplgo$o9r@canyon.sr.hp.com> <4ksu6q$haa@nadine.teleport.com> <19960417.7BBC9E0.3B7F@asd01-01.dial.xs4all.nl> <4l4cha$dhn@daily-planet.execpc.com>
  9. NNTP-Posting-Host: asd10-02.dial.xs4all.nl
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-NewsSoftware: GRn 2.1 Feb 19, 1994
  14.  
  15.  
  16. In article <4l4cha$dhn@daily-planet.execpc.com> innuendo@execpc.com (Jonathan Gapen) writes:
  17. >
  18. > > It would be great IMO to have an add-on layer to the OS that aggressively checks
  19. > > and reports everything, but there shouldn't be too much reason for the user to
  20. > > run that.
  21. >
  22. >    May I point out again that until programming methods improve drastically,
  23. > *all* non-trivial software will have bugs.  The user still needs some
  24. > protection, because sooner or later, something will break.
  25.  
  26. True!  But I don't wholly agree with the notion that protection is, and should
  27. be, an absolute matter either.  It's still a tradeoff between factors such as
  28. risk, shooting yourself in the foot (complicated protection systems can have
  29. bugs of their own, or encourage bugs in other software), and costs *.
  30.  
  31. In my experience the worst problem with bugs is not so much when they don't
  32. occur until the customer bumps into them, but when they do occur yet produce no
  33. noticable effect during testing.  Hence my preference for a split system
  34. (developer one which notifies of every slight error, and a lightly protected one
  35. for the user) over a UNIX-style OS that quietly swallows everything so that
  36. glaring bugs can stay hidden for years.
  37.  
  38. As an example, with Purify I once found a bug in one of my own programs (true!):
  39. During the final iterations of a loop, it read the -1st entry of a malloc()'d
  40. array.  No amount of memory protection would ever catch this because it was
  41. within malloc()'s administration struct.  If the number found there fell between
  42. 1 and some small positive value (extremely unlikely), some incorrect data would
  43. be generated and the loop would continue on the -2nd entry.  If the number found
  44. there were between 1 and the one at the -1st entry (even more unlikely), a core
  45. dump would probably occur.
  46.  
  47. Bugs like this one, and you can't convince me they are a rare variety, can lead
  48. a latent existence for years, waiting for the Murphiest moment to make their
  49. appearance.  They can't be reasonably caught by protection, but they can by
  50. debugging tools during rigorous testing.
  51.  
  52.  
  53. --footnotes--
  54. * I believe the correctness problem is undecidable in the general case, thus a
  55.   protective system has three basic options:  (1) Risking infite computation
  56.   time for deciding what is "safe", (2) flagging potentially harmless actions as
  57.   "unsafe", or (3) incomplete protection.
  58. --footnotes--
  59.  
  60.  
  61. > Jonathan Gapen (innuendo@execpc.com)
  62. > Bread in, toast out. How does it DO that?
  63.  
  64. --
  65. ============================================================================
  66. #  Jeroen T. Vermeulen   \"How are we doing kid?"/   Yes, we use Amigas.   #
  67. #---  jtv@xs4all.nl    ---\"Oh, same as always."/--         ...          --#
  68. #jvermeul@wi.leidenuniv.nl \ "That bad, huh?"  /  Got a problem with that? #
  69. A Pentium is like a miracle:  They do exist but I wouldn't count on them.
  70.